<script setup lang='ts'>
import son from './components/son.vue'
const getMsg = (msg: string)=>{
  console.log(4,msg)
}
</script>
<template>
<div>
  <!-- emits标注类型 -->

  <son @get-msg="getMsg"></son>
  <input ref="inputRef" type="text">
</div>
</template>
<style scoped>
</style>